//
//  WSDatePickerView.h
//  WSDatePicker
//
//  Created by iMac on 17/2/23.
//  Copyright © 2017年 zws. All rights reserved.
//

#import <UIKit/UIKit.h>

//typedef enum{
//    EKDateStyleShowYearMonthDayHourMinute  = 0,
//    EKDateStyleShowMonthDayHourMinute,
//    EKDateStyleShowYearMonthDay,
//    EKDateStyleShowMonthDay,
//    EKDateStyleShowHourMinute
//    
//}EKDatePickerStyle;

typedef enum {
    EKCalendarBottom = 0,
    EKCalendarMiddel
    
}EKCalendarPosition;

typedef void(^CalendarDismissBlock)(BOOL isCanceled);
@interface EKCalendarView : UIView

@property (nonatomic, assign) EKCalendarPosition    datePickerStyle;
@property (nonatomic, strong) UIColor *themeColor;

@property (nonatomic, retain) NSDate *maxLimitDate;//限制最大时间（没有设置默认2049）
@property (nonatomic, retain) NSDate *minLimitDate;//限制最小时间（没有设置默认1970）

-(instancetype)initWithDatePosition:(EKCalendarPosition)position CompleteBlock:(void(^)(NSDate *))completeBlock;
- (void)dismissHandler:(CalendarDismissBlock)handler;
-(void)hiddenAniimation;
-(void) show;

@end

